package com.nineclock.api.system;

import com.nineclock.common.entity.Result;
import com.nineclock.system.dto.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

@Api(value = "企业管理",tags = "系统服务")
public interface SysCompanyControllerApi{

    @ApiOperation(value = "查询当前企业信息")
    public Result<SysCompanyDTO> queryCompanyInfo();

    //上传的文件(file) 会自动的上传(返回)到(MultipartFile)中,
    @ApiOperation(value = "上传图片")
    public Result<String> uploadOSS(MultipartFile file) throws IOException;

    @ApiOperation(value = "更新企业信息")
    public Result updateCompanyInfo(SysCompanyDTO sysCompanyDTO );


    @ApiOperation(value = "获取当前企业主管理员")
    public Result<SysCompanyUserDTO> getCurrentAdmin();

    @ApiOperation(value="更改系统管理员")
    public Result changeSysAdmin(SysChangeMainManagerDTO sysChangeMainManagerDTO);

    @ApiOperation(value = "根据企业的关键字名称查询企业列表")
    public Result<List<SysCompanyDTO>> queryCompanyByName(String keyword);

    @ApiOperation(value = "申请加入企业")
    public Result applyJoinCompany(SysApplyJoinCompanyUserDTO sysApplyJoinCompanyUserDTO);

    @ApiOperation(value = "审核加入企业")
    public Result allowedJoinCompany(SysAllowedJoinCompanyUserDTO sysAllowedJoinCompanyUserDTO);


}

